package IO.io_5_8.use_file;
import java.io.File;
import java.io.IOException;

public class Main1 {
    public static void main(String[] args) throws IOException {
        File file = new File("..\\hello.txt");
        System.out.println(file.getCanonicalPath());
        System.out.println(file.exists());          // 最常见

        System.out.println(file.isDirectory());     // 最常见
        System.out.println(file.isFile());          // 最常见

        System.out.println(file.canExecute());
        System.out.println(file.canRead());
        System.out.println(file.canWrite());
    }
}
